package com.wxzz.elearing.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 消息接受人员
 * </p>
 *
 * @author
 * @since 2021-05-22
 */
@Data
@ApiModel(value = "WxUserSystemMessage对象", description = "消息接受人员")
public class WxUserSystemMessage extends BaseEntity {

    @ApiModelProperty(value = "用户/企业id(0全部)")
    private Long commonId;

    @ApiModelProperty(value = "消息id")
    private Long systemMessageId;

    @ApiModelProperty(value = "0-未读 1-已读")
    private Integer isRead;

    @ApiModelProperty(value = "通知类型 0-用户 1-企业后台 2-平台后台")
    private Integer messageType;

    @TableField(exist = false)
    @ApiModelProperty(value = "手机号")
    private String phone;

    @TableField(exist = false)
    @ApiModelProperty(value = "昵称")
    private String nickname;

    @TableField(exist = false)
    @ApiModelProperty(value = "头像")
    private String icon;

    @TableField(exist = false)
    @ApiModelProperty(value = "身份名称")
    private String identityName;

    @TableField(exist = false)
    @ApiModelProperty(value = "部门名称")
    private String organizationName;

    @TableField(exist = false)
    @ApiModelProperty(value = "上一级部门名称")
    private String lastOrganizationName;

}
